//
//  firstTableViewCell.m
//  LazyCat
//
//  Created by rocky on 16/2/17.
//  Copyright (c) 2016年 zhanshu. All rights reserved.
//

#import "firstTableViewCell.h"

@implementation firstTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.top1V = [[UIView alloc]init];
        [self addSubview:self.top1V];
        self.seletedLefV = [[UIView alloc]init];
        [self addSubview:self.seletedLefV];
        self.name1Label = [[UILabel alloc]init];
        [self addSubview:self.name1Label];
        self.seletedRigV = [[UIView alloc]init];
        [self addSubview:self.seletedRigV];
        self.bottom1V = [[UIView alloc]init];
        [self addSubview:self.bottom1V];
    }
    return self;
}
-(void)layoutSubviews {
    self.top1V.frame = CGRectMake(0, 0, ScreenWidth/4, 0.5);
    self.top1V.backgroundColor = SetColor(219, 214, 214, 1);
    
    self.seletedLefV.frame = CGRectMake(0, 7, 2, 30);
    self.seletedLefV.backgroundColor = SetColor(255, 102, 0, 1);
    
    self.name1Label.frame = CGRectMake(5, 7, ScreenWidth/4-10, 30);
    self.name1Label.font = [UIFont systemFontOfSize:13];
    self.name1Label.textAlignment = NSTextAlignmentCenter;
    self.seletedRigV.frame = CGRectMake(ScreenWidth/4-0.5, 0, 0.5, 44);
    self.seletedRigV.backgroundColor = SetColor(219, 214, 214, 1);
    
    self.bottom1V.frame = CGRectMake(0, 43.5, ScreenWidth/4, 0.5);
    self.bottom1V.backgroundColor = SetColor(219, 214, 214, 1);
}
- (void)awakeFromNib {
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}
@end
